import {FlatList, StyleSheet, View} from 'react-native';
import {Image} from '@rneui/base';
import * as url from 'url';

export default function Banner({data, style}) {
  return (
    <View style={style}>
      <Image
        source={{
          uri: "data[0].imagePath",
        }}
        style={{
          width: 200,
          height: 200,
        }}></Image>
    </View>
  );
}

const styleSheet = StyleSheet.create({
  image: {
    width: 200,
    height: 200,
  },
});
